<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <title>Recherche</title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <link rel="stylesheet" type="text/css" href="default.css" />
        <script type="text/javascript" src="jquery.js"></script>
        <script type="text/javascript" src="scripts.js"></script>

    </head>
    <body>
        <div id="upbg"></div>
        <div id="outer">

            <?php
            include 'header.php';
            include 'login.php';
            include 'menu.php';
            ?>
            <div id="content">

                <?php
                include_once 'connectBDD.php';
                $result = mysql_query("SELECT login, avatar_path FROM User where login LIKE '%" . $_POST['recherche'] . "%'");
                echo"<div id='resultRech'>";
                while ($row = mysql_fetch_assoc($result)) {
                    echo"
                         <div id='membre'>
                            <div id='petite_image'>
                                <img src=" . $row['avatar_path'] . " width='50px' height='50px' />
                            </div>
                            <div id='login'><a href='profil.php?login=" . $row['login'] . "'>" . $row['login'] . "</a></div>
                         </div>";
                }
                echo"</div>";
                ?>

            </div>

            <?php
                include 'footer.php';
            ?>
        </div>
    </body>
</html>

